#ifndef FOLDERMODEL_H
#define FOLDERMODEL_H
#include <QString>
#include <QIcon>
#include <QMetaType>
// Important，这个头文件

enum FolderType {
    Inbox,
    Important,
    Trash,
    Sent,
    Draft,
    Custom
};

class FolderModel
{
public:
    FolderModel();
    FolderModel(QString fullName,int unreadCount,int mailCount,FolderType type);
    QString fullName;
    QString name;
    int unreadCount;
    int mailCount;
    FolderType type;
    QIcon getIcon();
private:
    QIcon * mIcon = NULL;
};
Q_DECLARE_METATYPE(FolderModel)
#endif // FOLDERMODEL_H
